//
//  NSString+Json.h
//  NewHoldGold
//
//  Created by 梁鑫磊 on 14-1-3.
//  Copyright (c) 2014年 zsgjs. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Json)
-(UIColor *)hexStringToColor;
- (NSString *)URLEncodedString;
- (NSString*)URLDecodedString;
- (NSString *)configUrl;
- (BOOL)isEmptyOrWhitespace;
/**
 配置加载imageUrl

 @return 全路径或者拼接路径的imageUrl
 */
- (NSString *)configImageUrl;

+ (NSString *)trim:(NSString *)val trimCharacterSet:(NSCharacterSet *)characterSet;
+ (NSString *)trimWhitespace:(NSString *)val;
+ (NSString *)trimNewline:(NSString *)val;
+ (NSString *)trimWhitespaceAndNewline:(NSString *)val;

- (NSString *)trimmingWhitespaceAndNewlines;
@end
